package sy.services.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.db.mysql.dao.QDGLDao;
import sy.db.mysql.model.JKGL;
import sy.db.mysql.model.QDGL;
import sy.pageModel.DataGrid;
import sy.services.QDGLServiceI;


@Service("qDGLService")
public class  QDGLServiceImpl implements  QDGLServiceI {
	
	@Autowired
	 QDGLDao  qDGLDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.qDGLDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(QDGL record) {
		return this.qDGLDao.insertSelective(record);
	}

	@Override
	public QDGL selectByPrimaryKey(String id) {
		return this.qDGLDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(QDGL record) {
		return this.qDGLDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<QDGL> retList = this.qDGLDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}
	@Override
	public List<Map> qxck(Long id) {
		return this.qDGLDao.qxck(id);
	}
	@Override
	public void qxtj(QDGL t) {
		 qDGLDao.qxtj(t);
	}

}
